package com.esiag.pdsteam.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.context.ContextConfiguration;

import com.esiag.pdsteam.dao.InformationDao;


//@ContextConfiguration(locations={"classpath:test-context/FindComplexInfo-context.xml"})
public class Main {
	
@Autowired 
InformationDao informationDao;
	public static void main(String[] args) {
		Main main = new Main();
		main.start();
		
	}
	
	private void start() {
        ApplicationContext context = 
            new ClassPathXmlApplicationContext("classpath:test-context/InformationDaoTest-context.xml");
        informationDao=context.getBean(InformationDao.class);
        System.out.println("my beans method: " + informationDao.findAll());
    }

}
